<template>
 <div >
  <el-card class="box-card" shadow="hover" >
    <el-carousel height="150px">
      <el-carousel-item v-for="(item,index) in ad" :key="index">
        <img :src=item width="258px" height="150px"/>
        <!-- <h3 class="small">{{ item }}</h3> -->
      </el-carousel-item>
    </el-carousel>
  </el-card>
  </div>
  
</template>

<script>
import ad1 from "../../../static/advertisement/1.png"
import ad2 from "../../../static/advertisement/2.jpg"
import ad3 from "../../../static/advertisement/3.png"
import ad4 from "../../../static/advertisement/4.png"
export default {
  data() {
    return {
      ad: [
        ad1,
        ad2,
        ad3,
        ad4
      ]
    };
  },
  
}
</script>

<style scoped>

 .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;

    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
  .box-card {
   /* width: 300px; */
    line-height: 0;
    margin-bottom: 20px;
    z-index: 2;
    
  }

</style>